const colors = ['#5470C6', '#91CC75', '#EE6666'];
option = {
  color: colors,
  grid: {
    height: 120,
    left: '10%',
    right: '10%',
    top: 40
  },
  legend: {
    data: ['事件1', '事件2', '事件3'],
    textStyle: {
      color: '#FFF'
    }
  },
  xAxis: {
    type: 'category',
    data: ['大风', '雷暴', '冰雹'],
    boundaryGap: true,
    axisLine: {
      lineStyle: {
        color: '#FFFFFF'
      }
    }
  },
  yAxis: [
    {
      type: 'value',
      position: 'left',
      alignTicks: true,
      axisLine: {
        show: true,
        lineStyle: {
          color: '#FFFFFF'
        }
      }
    }
  ],
  series: [
    {
      name: '事件1',
      type: 'bar',
      data: [2.0, 4.9, 7.0],
      itemStyle: {
        color: colors[0]
      },
      label: {
        show: true,
        textStyle: {
          color: '#FFF'
        }
      }
    },
    {
      name: '事件2',
      type: 'bar',
      data: [2.6, 5.9, 9.0],
      itemStyle: {
        color: colors[1]
      },
      label: {
        show: true,
        textStyle: {
          color: '#FFF'
        }
      }
    },
    {
      name: '事件3',
      type: 'bar',
      data: [2.6, 5.9, 9.0],
      itemStyle: {
        color: colors[2]
      },
      label: {
        show: true,
        textStyle: {
          color: '#FFF'
        }
      }
    }
  ]
};



module.exports = option;